package fr.upmc.i3s.fuglmeyeranalyser.patients;

import java.util.LinkedList;

public class PatientList extends LinkedList<Patient> {

	private static final long serialVersionUID = -5235513651981851703L;

	@Override
	public String toString() {
		String result = "PatientList [";
		for(Patient p : this) {
			result += p.toString() + ", ";
		}
		return result.substring(0, result.length()-2) + "]";
	}
	
	public String toUserString() {
		String result = "PatientList :\n\n";
		for(Patient p : this) {
			result += p.toUserString() + "\n";
		}
		return result;
	}
	
}
